﻿$(document).scroll(function ()
{
    var newScroll = document.documentElement.scrollTop;
    var newScroll2 = document.body.scrollTop;
    var abc = newScroll + newScroll2;
    if (abc < 50)
        $("#MainMenu").removeClass("position-fixed-top");
    else
        $("#MainMenu").addClass("position-fixed-top");
    }
)


